package com.fuchenyang.sentinel.consumer.controller;

import com.fuchenyang.common.util.JsonResult;
import com.fuchenyang.sentinel.consumer.service.ConsumerService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class ConsumerController {
    @Resource
    private ConsumerService service;

    @GetMapping("/a")
    public JsonResult a() {
        return service.a();
    }

    @GetMapping("/b")
    public JsonResult b() {
        return service.b();
    }
}